﻿package com.utils 
{
	import com.staticInfo.MapData;
	import flash.geom.Point;
	
	/**
	 * ...
	 * @author zhengzihua
	 */
	public class TransformCoordinate 
	{
		
		public function TransformCoordinate() 
		{
			
		}
		static public function transformCoor(p:Point):Point {
			var cx:int = (p.x + p.y) * MapData.basePix;
			var cy:int = (p.x - p.y) * MapData.basePix * 0.5;
			return new Point(cx, cy);
		}
	}
	
}